import requests

class RequestHandler:
    def __init__(self,method,url):
        self.method = method.lower()
        self.url = url

    def do_request(self,params=None,data=None,**kwargs):
        if self.method == 'get':
            return requests.get(url=self.url,params=params,**kwargs)

        elif self.method == 'post':
            return requests.post(url=self.url,data=data,**kwargs)